<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: "App",
  watch: {
    // 解决刷新浏览器没有tab的问题
    $route(to, from) {
      if (to.path !== '/login') {
        let obj = {
          name: to.name,
          title: to.meta.title
        }
        this.$store.commit("addTabs", obj)
      }
    }
  }
}
</script>
<style>
@import "assets/css/base.css";


</style>
